﻿// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_SALES_ORDER_ITEM_TO_APPITEM
// * CreateDate    : 2013/2/7 20:58:55
// * Creater       : SalesOrderItemToAppItemEntity
// * LastChangeDate: 2013/2/7 20:58:55
// * LastChanger   : 2013/2/7 20:58:55
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
    [Serializable]
    public partial class SalesOrderItemToAppitemEntity : EntityBase
    {
        public SalesOrderItemToAppitemTable TableSchema
        {
            get
            {
                return SalesOrderItemToAppitemTable.Current;
            }
        }

        public SalesOrderItemToAppitemEntity()
        {

        }

        public SalesOrderItemToAppitemEntity(DataRow dr)
        {
            if (dr == null)
            {
                return;
            }
            this.OrderItemId = Convert.ToString(CommonFunctions.ToObject(dr["ORDER_ITEM_ID"]));
            this.ApplicationItemId = Convert.ToString(CommonFunctions.ToObject(dr["APPLICATION_ITEM_ID"]));
        }

        public SalesOrderItemToAppitemEntity(DataRowView dr)
        {
            if (dr == null)
            {
                return;
            }
            this.OrderItemId = Convert.ToString(CommonFunctions.ToObject(dr["ORDER_ITEM_ID"]));
            this.ApplicationItemId = Convert.ToString(CommonFunctions.ToObject(dr["APPLICATION_ITEM_ID"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return SalesOrderItemToAppitemTable.Current;
            }
        }

        #region Perporty List
        public string OrderItemId
        {
            get { return Convert.ToString(GetData(SalesOrderItemToAppitemTable.C_ORDER_ITEM_ID)); }
            set { SetData(SalesOrderItemToAppitemTable.C_ORDER_ITEM_ID, value); }
        }

        public string ApplicationItemId
        {
            get { return Convert.ToString(GetData(SalesOrderItemToAppitemTable.C_APPLICATION_ITEM_ID)); }
            set { SetData(SalesOrderItemToAppitemTable.C_APPLICATION_ITEM_ID, value); }
        }

        #endregion
    }


}

